<?php


namespace App\Mail\Customer;


use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;

class UserPasswordMail
    extends Mailable
{
    use Queueable, SerializesModels;
    /**
     * @var array
     * @author luffyzhao@vip.126.com
     */
    public $attribute;

    /**
     * Create a new message instance.
     *
     * @param array $attribute
     */
    public function __construct(array  $attribute)
    {
        $this->attribute = $attribute;
    }

    /**
     * Build the message.
     *
     * @return UserPasswordMail
     */
    public function build()
    {
        return $this->view('emails.password')->with([
            'attribute' => $this->attribute
        ]);
    }
}
